/* 头部样式文件 */

/* 顶部联系栏 */
.top-bar {
    background-color: #f5f5f5;
    padding: 10px 0;
    text-align: right;
}

.top-contact-link {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

/* 头部和导航 */
.header {
    padding: 20px 0;
    background-color: #FF8C00;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    flex: 0 0 150px;
}

.logo {
    height: auto;
    max-height: 40px;
}

/* 主导航 */
.main-nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-item {
    margin-left: 30px;
    position: relative;
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 0;
}

/* 移动导航开关 */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}

/* 响应式导航 */
@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: #fff;
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
    }
    
    .main-nav.active {
        height: auto;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}